/*    */ package com.hs.activation.common.config;
/*    */ 
/*    */ import com.baomidou.mybatisplus.core.parser.ISqlParser;
/*    */ import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
/*    */ import com.baomidou.mybatisplus.extension.plugins.pagination.optimize.JsqlParserCountOptimize;
/*    */ import org.springframework.context.annotation.Bean;
/*    */ import org.springframework.context.annotation.Configuration;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ @Configuration
/*    */ public class MybatisPlusConfig
/*    */ {
/*    */   @Bean
/*    */   public PaginationInterceptor paginationInterceptor() {
/* 22 */     PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
/*    */ 
/*    */     
/* 25 */     paginationInterceptor.setLimit(500L);
/*    */     
/* 27 */     paginationInterceptor.setCountSqlParser((ISqlParser)new JsqlParserCountOptimize(true));
/* 28 */     return paginationInterceptor;
/*    */   }
/*    */ }


/* Location:              C:\Users\yzc\Desktop\新建文件夹 (3)\activation-0.0.16.jar!\BOOT-INF\classes\com\hs\activation\common\config\MybatisPlusConfig.class
 * Java compiler version: 16 (60.0)
 * JD-Core Version:       1.1.3
 */